-
Notifications
You must be signed in to change notification settings - Fork 175
FIXME: Make TProtocol Optional[TProtocol] to keep types consistent #770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Please take a look at this @seetadev , If you tell me some pointers on how to check its reliability, that would be really helpful. Currently I just change the TProtocol as Optional[TProtocol] and totally rely on tests ("tests/core/protocol_muxer/test_protocol_muxer.py", pre-commit tests) to make further changes. |
@Jineshbansal : Great, thank you so much for sharing the PR. Appreciate it. Definitely, I'll review it. CCing @sumanjeet0012 and @acul71 for their feedback and review too. |
I've seen that windows test failing randomly in other PRs |
@acul71 thanks for pointing it out, I will definitely look into this |
@acul71 , @Jineshbansal : Not related, we can ignore this test case. CCing @mystical-prog, who could help fix it via a PR. @Jineshbansal : Please add newsfragment and more test cases. |
@Jineshbansal @seetadev |
@acul71 , sorry I couldn't get a time for this, I will finalize my changes in this week |
@acul71 PTAL |
@Jineshbansal : Hi Jinesh. Please add some test cases to check the PR too. Thank you for adding the newsfragment. |
@Jineshbansal Thanks for the updates! I can see you've added the newsfragment and made the type annotation changes. Great work on the implementation! I've reviewed the changes and here's my assessment: ✅ What's Working Well:
🔍 Areas for Enhancement:
Overall Assessment: Thanks for addressing this type consistency issue!
|
@acul71 For now, I’m adding the unit test. I’ll check for similar type annotation issues elsewhere in the codebase later, as I have some other tasks to focus on right now. Could you please merge the PR? |
Well done @Jineshbansal |
What was wrong?
This PR aims to make TProtocol as Optional[TProtocol] to keep types consistent in py-libp2p/libp2p/protocol_muxer/multiselect.py